Hi I tried updating to pants 2.18.0 and got an <un...
# general
h
Hi I tried updating to pants 2.18.0 and got an unrecognized symbol Error for a macro in my root build file. It reminds me of this issue.
Copy code
Exception message: 1 Exception encountered:

InvalidTargetException: BUILD:25: The 'subprocess_environment_env_vars' field in target //:local-environment must be an iterable of strings (e.g. a list of strings), but was `env_vars_devcontainer()` with type `<unrecognized symbol>`.
Created an issue.
c
Hi, similar yes, but different. (edit: good find) Are you sure about the return value from your macro? Perhaps put it into the description field of a dummy target for introspection with peek to debug?
Copy code
target(name="dummy", description=f"macro value: {some_macro(..)!r}")
then:
pants peek path/to:dummy
ah, nvm, on a closer look I realize macros are not supported on environment targets during bootstrap, which used to be silently ignored. I left a comment as such on the ticket. thanks for the report!